﻿<navigation:Page x:Class="SL4_NAV_ProjectiCON.Views.ForecastRpt" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d" xmlns:local="clr-namespace:SL4_NAV_ProjectiCON.Views"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
          d:DesignWidth="700" d:DesignHeight="5000" Height="1000" Width="1100" Loaded="UserControl_Loaded" 
           Title="ForecastRpt Page">
    <UserControl.Resources>
        <DataTemplate x:Key="ItemTemplate">
            <StackPanel>
                <TextBlock Text="{Binding PropertyName}"/>
                <TextBlock Text="{Binding Value}"/>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <ScrollViewer HorizontalScrollBarVisibility="Visible" Width="1081" Height="Auto">
        <StackPanel x:Name="LayoutRoot" Width="1000" Height="1000" Orientation="Horizontal" DataContext="{Binding Source={StaticResource SampleDataSource}}">
            <StackPanel Height="1000" Width="333" HorizontalAlignment="Left">
                <StackPanel x:Name="Sales">
                    <local:ForecastModel x:Name="USASales" Height="150" PositionType="Top" Title="Asia Booking" Width="339" />
                    <local:ForecastModel x:Name="MexicoSales" Height="150" PositionType="Middle" Title="Europe Booking" Width="339" />
                    <local:ForecastModel x:Name="CanadaSales" Height="150" PositionType="Bottom" Title="US Booking" Width="339" />
                </StackPanel>
                <StackPanel x:Name="Costs" VerticalAlignment="Top" Margin="0">
                    <local:ForecastModel x:Name="SalaryCosts" Height="166" PositionType="Top" Title="MnR Costs" Width="339" />
                    <local:ForecastModel x:Name="SalesCosts" Height="144" PositionType="Bottom" Title="Booking Costs" Width="338" />
                </StackPanel>
            </StackPanel>
            <StackPanel Height="1000" VerticalAlignment="Top">
                <local:ForecastModel x:Name="TotalRev" Height="152" PositionType="Top" Width="341" Margin="0,270,0,0" Title="Total Revenue" IsReadOnly="True"/>
                <local:ForecastModel x:Name="TotalCosts" Height="150" PositionType="Bottom" Width="343" Margin="0,25,0,0" Title="Total Costs" IsReadOnly="True"/>
             </StackPanel>
            <StackPanel Height="1000" VerticalAlignment="Top" Width="300" HorizontalAlignment="Left" Margin="0">
                <Button Content="Return to iApro" Height="33" Name="button1" Width="134" Background="#FF105C5C" Click="button1_Click" FontSize="14" FontWeight="Bold" BorderBrush="Black"></Button>
                <local:ForecastModel x:Name="Final" Height="150" PositionType="Bottom" Width="339" Margin="0,325,0,0" Title="Net Income" IsReadOnly="True"/>
            </StackPanel>
        </StackPanel>
      </ScrollViewer> 
</navigation:Page>
